/*
 * Copyright 2008 echo.khannedy@gmail.com
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * 
 * ["Let's ROCK with JAVA"]
 * 
 * ["echo.khannedy@gmail.com"]
 * ["http://eecchhoo.wordpress.com/"]
 */
package open.usu.swing.event;

import java.util.EventObject;
import open.usu.swing.EContainer;

/**
 * Event untuk ChildCOntainerListener
 * 
 * @author usu
 * @author <a href="mailto:echo.khannedy@gmail.com">echo.khannedy@gmail.com</a>
 * @see <a href="http://eecchhoo.wordpress.com/">http://eecchhoo.wordpress.com/</a>
 * @see <a href="http://biosmansa.wordpress.com/">http://biosmansa.wordpress.com/</a>
 * @see <a href="http://code.google.com/p/eglasspane/">http://code.google.com/p/eglasspane/</a>
 */
public class ChildContainerEvent extends EventObject {

    private static final long serialVersionUID = 5438568645362149210L;

    /**
     * Membuat ChildContainerEvent baru
     * @param source sumber
     */
    public ChildContainerEvent(Object source) {
        super(source);
    }

    /**
     * Mendapatkan EContainer yang memiliki event ini
     * @return EContainer
     */
    public EContainer getEContainer() {
        return (EContainer) getSource();
    }
}
